package com.example.demo.service.impl;

import com.example.demo.dao.SysRoleMapper;
import com.example.demo.dto.SysRole;
import com.example.demo.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName SysRoleServiceImpl
 * @Desecription TODO 1.2新增
 * @Author gjy
 * @Date 2021/4/7 16:13
 * @Version 1.2
 **/
@Service
public class SysRoleServiceImpl implements SysRoleService {
    @Autowired
    private SysRoleMapper roleMapper;

    @Override
    public SysRole selectById(Integer id){
        return roleMapper.selectById(id);
    }

    @Override
    public SysRole selectByName(String name) {
        return roleMapper.selectByName(name);
    }
}
